package cn.wolfcode.web.controller;

import cn.wolfcode.domain.Person;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/person")
public class HelloController {
    @RequestMapping("/action")
    public Person action(){
        Person person = new Person();
        person.setId(1L);
        person.setAction("搞笑仔黄梓铭");
        return person;
    }
}
